package org.dromara.system.domain.bo;

import org.dromara.system.domain.YzlScheduleProgress;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 任务上报业务对象 yzl_schedule_progress
 *
 * @author Lion Li
 * @date 2025-09-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = YzlScheduleProgress.class, reverseConvertGenerate = false)
public class YzlScheduleProgressBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 任务id
     */
    @NotNull(message = "任务id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long taskId;

    /**
     * 任务名称
     */
    @NotBlank(message = "任务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskName;

    /**
     * 计划id
     */
    @NotNull(message = "计划id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long formationId;

    /**
     * 上报人
     */
    private Long reportUserId;

    /**
     * 上报人名称
     */
    private String reportUserName;

    /**
     * 实际开始时间
     */
    @NotNull(message = "实际开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date startTime;

    /**
     * 实际结束时间
     */
    @NotNull(message = "实际结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date endTime;

    /**
     * 完成百分比
     */
    @NotBlank(message = "完成百分比不能为空", groups = { AddGroup.class, EditGroup.class })
    private Float percentage;

    /**
     * 工期
     */
    private String duration;

    /**
     * 附件
     */
    private String filesPath;


}
